package office.action.person.form;

import office.bo.system.Department;
import current.security.user.domain.User;


public class LeaveRequestForm {

	private String id;
	//开始时间
	private String beginDate;
	//结束时间
	private String endDate;
	//总计时间
	private Double sumDay;
	//请假原因
	private String reson;
	//请假人
	private User user;
	private String entryUserId;		//提交人id(请假人id)
	private String entryUserName;	//提交人名字(请假人名称)
	private String entryRole;		//提交人角色
	private String checkRole;		//审批人角色
	private String entryDate;
	private String state;
	private String stateName;
	private String deptId;
	private String companyId;
	private String roleDFlag;
	//所属部门，审批有关
	private Department department;
	
	public LeaveRequestForm(){
		
	}
	
	public LeaveRequestForm(String id,String beginDate,String endDate,Double sumDay,String reson,
			String entryUserId,String entryUserName,String entryRole,String checkRole,String entryDate,String state){
		this.id = id;
		this.beginDate = beginDate;
		this.endDate = endDate;
		this.sumDay = sumDay;
		this.reson = reson;
		this.entryUserId = entryUserId;
		this.entryUserName = entryUserName;
		this.entryRole = entryRole;
		this.checkRole = checkRole;
		this.entryDate = entryDate;
		this.state = state;
		if(null!=state && !("").equals(state)){
			if(state.equals("-1")){
				this.stateName = "审批驳回";
			}else if(state.equals("0")){
				this.stateName = "未提交审批";
			}else if(state.equals("1")){
				this.stateName = "审批过程";
			}else if(state.equals("100")){
				this.stateName="审批完成";
			}
		}
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getBeginDate() {
		return beginDate;
	}

	public void setBeginDate(String beginDate) {
		this.beginDate = beginDate;
	}

	public String getEndDate() {
		return endDate;
	}

	public String getReson() {
		return reson;
	}

	public void setReson(String reson) {
		this.reson = reson;
	}

	public String getEntryUserId() {
		return entryUserId;
	}

	public void setEntryUserId(String entryUserId) {
		this.entryUserId = entryUserId;
	}

	public String getEntryUserName() {
		return entryUserName;
	}

	public void setEntryUserName(String entryUserName) {
		this.entryUserName = entryUserName;
	}

	public String getEntryRole() {
		return entryRole;
	}

	public void setEntryRole(String entryRole) {
		this.entryRole = entryRole;
	}

	public String getCheckRole() {
		return checkRole;
	}

	public void setCheckRole(String checkRole) {
		this.checkRole = checkRole;
	}

	public String getEntryDate() {
		return entryDate;
	}

	public void setEntryDate(String entryDate) {
		this.entryDate = entryDate;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public String getStateName() {
		return stateName;
	}

	public void setStateName(String stateName) {
		this.stateName = stateName;
	}

	public String getDeptId() {
		return deptId;
	}

	public void setDeptId(String deptId) {
		this.deptId = deptId;
	}

	public Double getSumDay() {
		return sumDay;
	}

	public void setSumDay(Double sumDay) {
		this.sumDay = sumDay;
	}

	public void setEndDate(String endDate) {
		this.endDate = endDate;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public Department getDepartment() {
		return department;
	}

	public void setDepartment(Department department) {
		this.department = department;
	}

	public String getRoleDFlag() {
		return roleDFlag;
	}

	public void setRoleDFlag(String roleDFlag) {
		this.roleDFlag = roleDFlag;
	}

	public String getCompanyId() {
		return companyId;
	}

	public void setCompanyId(String companyId) {
		this.companyId = companyId;
	}
	
	

}
